<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/toaster/css/toastr.css">
<title>班级信息</title>
</head>
<body>
	<div style="font-size: 35px;text-align:center;">班级信息</div>
	<a href="<%=request.getContextPath() %>/ApplicationServlet?command=addJsp">用户新增</a>
	<div class="bs-example" data-example-id="simple-table">
    <table class="table">
      <thead>
        <tr>
          <th>序号</th>
          <th>名称</th>
          <th>课程</th>
          <th>用户</th>
          <th>操作时间</th>
          <th>状态</th>
          <th>备注</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
      <c:forEach items="${sysClassList }" var="sysClass" varStatus="v">
        <tr>
          <th scope="row">${v.count }</th>
          <td>${sysClass.name }</td>
          <td>${sysClass.courseId }</td>
          <td>${sysClass.operateUserId  }</td>
          <td><f:formatDate value="${sysClass.operateTime }" pattern="yyyy-MM-dd"/></td>
          <td>
          <c:if test="${sysClass.state==1 }">
          	${sysClass.stateStr }
          </c:if>
          <c:if test="${sysClass.state==2 }">
          	${sysClass.stateStr }
          </c:if>
          </td>
		  <td>${sysClass.memo }</td>
		  <td>
		  <a href="<%=request.getContextPath() %>/ApplicationServlet?command=preUpdate&id=${sysClass.id}">修改</a>&nbsp;
		  <a href="<%=request.getContextPath() %>/ApplicationServlet?command=delete&id=${sysClass.id}">删除</a>
		  </td>
        </tr>
        </c:forEach>
      </tbody>
    </table>
  </div>
	
	<script src="<%=request.getContextPath() %>/static/common/plugin/jquery.min.js"></script>
	<script src="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
</body>
</html>